package com.qf.exception;


import com.qf.enums.OAExceptionEnum;
import lombok.Getter;

@Getter
public class OAException extends RuntimeException {

    private Integer code;

    public OAException( Integer code,String message) {
        super(message);
        this.code = code;
    }
    public OAException(OAExceptionEnum pfe) {
        super(pfe.getMsg());
        this.code = pfe.getCode();
    }
}
